package com.danhuang.cloud.danhuangdaily.controller;

import com.danhuang.cloud.danhuangcore.model.DhRes;
import com.danhuang.cloud.danhuangdaily.service.CommemorationService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/commemorate")
public class CommemorationController {

    @Resource
    private CommemorationService commemorationService;

    @GetMapping("/info")
    public DhRes info(){
        return commemorationService.info();
    }


}
